#ifndef HPLCSPARKLINKAUTOSAMPLERDEVICEPARSEPACKET_H
#define HPLCSPARKLINKAUTOSAMPLERDEVICEPARSEPACKET_H

#include "baseparsepacket.h"
#include "modulehplcautosamplerdefine.h"

namespace hplc
{
namespace sparklink
{

class HplcSparkLinkAutoSamplerProtocolData;
class HplcSparkLinkAutoSamplerDeviceParsePacket : public BaseParsePacket
{
    Q_OBJECT
public:
    HplcSparkLinkAutoSamplerDeviceParsePacket(HplcSparkLinkAutoSamplerProtocolData &data, AutoSamplerParam &param, QObject *parent = nullptr);
    virtual ~HplcSparkLinkAutoSamplerDeviceParsePacket() override;

    virtual void parse() override;

private:
    void parseSendProgrammedValue(quint8 id, quint8 ai, quint16 pfc, char *data);
    void parseSendActualValue(quint8 id, quint8 ai, quint16 pfc, char *data);

    AutoSamplerParam *m_param;
};

} // sparklink
} // hplc

#endif // HPLCSPARKLINKAUTOSAMPLERDEVICEPARSEPACKET_H
